// very simple
// prototype inherites
// with constructor revised

// disadvantage: initilize super when create sub
function Person(name) {
	this.name = name;
}
Person.prototype.getName = function() {
	return this.name;
}

function Employee(name, employeeID) {
	this.name = name;
	this.employeeID = employeeID;
}
Employee.prototype = new Person();
Employee.prototype.constructor = Employee; // constructor
Employee.prototype.getEmployeeID = function() {
	return this.employeeID;
};

//
var zhang = new Employee("ZhangSan", "1234");
console.log(zhang.getName()); // "ZhangSan"